using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Collections;
using System.ComponentModel;
using System.Text;
using System.Windows.Forms;


namespace HtmlDropDownListDemo
{
	/// <summary>
	/// Summary description for Properties.
	/// </summary>
	public class FormLinkProperties : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Button cmdOK;
		private System.Windows.Forms.Button cmdCancel;
		private System.ComponentModel.Container components = null;
		private System.Windows.Forms.TextBox textBoxInnerText;
		private System.Windows.Forms.TextBox textBoxInnerHtml;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label1;
		private FB.WinForms.Controls.HtmlDropDownList comboBox1;

		private bool mInnerTextChanged = false;
		private bool mInnerHtmlChanged = false;

		public FormLinkProperties ()
		{
			InitializeComponent();
		}
	
		public System.Windows.Forms.TextBox InnerText
		{
			get { return textBoxInnerText; }
		}
	
		public System.Windows.Forms.TextBox InnerHtml
		{
			get { return textBoxInnerHtml; }
		}
	
		public System.Windows.Forms.Form Form
		{
			get { return this; }
		}

		public FB.WinForms.Controls.HtmlDropDownList HtmlDropDownList
		{
			get { return comboBox1; }
		}

		public bool InnerTextChanged
		{
			get { return mInnerTextChanged; }
		}

		public bool InnerHtmlChanged
		{
			get { return mInnerHtmlChanged; }
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.cmdOK = new System.Windows.Forms.Button();
			this.cmdCancel = new System.Windows.Forms.Button();
			this.textBoxInnerText = new System.Windows.Forms.TextBox();
			this.textBoxInnerHtml = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.comboBox1 = new FB.WinForms.Controls.HtmlDropDownList();
			this.SuspendLayout();
			// 
			// cmdOK
			// 
			this.cmdOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.cmdOK.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.cmdOK.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.cmdOK.Location = new System.Drawing.Point(304, 152);
			this.cmdOK.Name = "cmdOK";
			this.cmdOK.TabIndex = 0;
			this.cmdOK.Text = "OK";
			// 
			// cmdCancel
			// 
			this.cmdCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.cmdCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.cmdCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.cmdCancel.Location = new System.Drawing.Point(392, 152);
			this.cmdCancel.Name = "cmdCancel";
			this.cmdCancel.TabIndex = 1;
			this.cmdCancel.Text = "Cancel";
			// 
			// textBoxInnerText
			// 
			this.textBoxInnerText.Location = new System.Drawing.Point(8, 64);
			this.textBoxInnerText.Name = "textBoxInnerText";
			this.textBoxInnerText.Size = new System.Drawing.Size(456, 20);
			this.textBoxInnerText.TabIndex = 2;
			this.textBoxInnerText.Text = "";
			this.textBoxInnerText.TextChanged += new System.EventHandler(this.textBoxInnerText_TextChanged);
			// 
			// textBoxInnerHtml
			// 
			this.textBoxInnerHtml.Location = new System.Drawing.Point(8, 120);
			this.textBoxInnerHtml.Name = "textBoxInnerHtml";
			this.textBoxInnerHtml.Size = new System.Drawing.Size(456, 20);
			this.textBoxInnerHtml.TabIndex = 4;
			this.textBoxInnerHtml.Text = "";
			this.textBoxInnerHtml.TextChanged += new System.EventHandler(this.textBoxInnerHtml_TextChanged);
			// 
			// label2
			// 
			this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.label2.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
			this.label2.Location = new System.Drawing.Point(8, 96);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(164, 23);
			this.label2.TabIndex = 18;
			this.label2.Text = "InnerHtml:";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label1
			// 
			this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.label1.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
			this.label1.Location = new System.Drawing.Point(8, 40);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(164, 23);
			this.label1.TabIndex = 19;
			this.label1.Text = "InnerText:";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// comboBox1
			// 
			this.comboBox1.Location = new System.Drawing.Point(8, 8);
			this.comboBox1.Name = "comboBox1";
			this.comboBox1.Size = new System.Drawing.Size(456, 21);
			this.comboBox1.TabIndex = 20;
			this.comboBox1.Text = "comboBox1";
			// 
			// FormLinkProperties
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(472, 182);
			this.Controls.Add(this.comboBox1);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.textBoxInnerHtml);
			this.Controls.Add(this.textBoxInnerText);
			this.Controls.Add(this.cmdCancel);
			this.Controls.Add(this.cmdOK);
			this.HelpButton = true;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.MinimumSize = new System.Drawing.Size(480, 120);
			this.Name = "FormLinkProperties";
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.Text = "Properties";
			this.ResumeLayout(false);

		}
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#endregion

		private void textBoxInnerText_TextChanged(object sender, System.EventArgs e)
		{
			mInnerTextChanged = true;
		}

		private void textBoxInnerHtml_TextChanged(object sender, System.EventArgs e)
		{
			mInnerHtmlChanged = true;
		}
	
		protected override void OnLoad(EventArgs e)
		{
			mInnerTextChanged = false;
			mInnerHtmlChanged = false;
			base.OnLoad (e);
		}
	}
}